package com.neusoft.cmsprojects.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TbGuestbook entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_guestbook", catalog = "cms")
public class TbGuestbook implements java.io.Serializable {

	// Fields

	private Integer CId;
	private String CName;
	private String CTele;
	private String CMail;
	private String CMsg;
	private String CUrl;
	private String CContent;
	private Date CCreatetime;
	private String CReply;
	private Integer CReplyer;
	private Date CReplytime;

	// Constructors

	/** default constructor */
	public TbGuestbook() {
	}

	/** full constructor */
	public TbGuestbook(String CName, String CTele, String CMail, String CMsg,
			String CUrl, String CContent, Date CCreatetime, String CReply,
			Integer CReplyer, Date CReplytime) {
		this.CName = CName;
		this.CTele = CTele;
		this.CMail = CMail;
		this.CMsg = CMsg;
		this.CUrl = CUrl;
		this.CContent = CContent;
		this.CCreatetime = CCreatetime;
		this.CReply = CReply;
		this.CReplyer = CReplyer;
		this.CReplytime = CReplytime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "c_id", unique = true, nullable = false)
	public Integer getCId() {
		return this.CId;
	}

	public void setCId(Integer CId) {
		this.CId = CId;
	}

	@Column(name = "c_name", length = 64)
	public String getCName() {
		return this.CName;
	}

	public void setCName(String CName) {
		this.CName = CName;
	}

	@Column(name = "c_tele", length = 32)
	public String getCTele() {
		return this.CTele;
	}

	public void setCTele(String CTele) {
		this.CTele = CTele;
	}

	@Column(name = "c_mail", length = 128)
	public String getCMail() {
		return this.CMail;
	}

	public void setCMail(String CMail) {
		this.CMail = CMail;
	}

	@Column(name = "c_msg", length = 128)
	public String getCMsg() {
		return this.CMsg;
	}

	public void setCMsg(String CMsg) {
		this.CMsg = CMsg;
	}

	@Column(name = "c_url", length = 512)
	public String getCUrl() {
		return this.CUrl;
	}

	public void setCUrl(String CUrl) {
		this.CUrl = CUrl;
	}

	@Column(name = "c_content", length = 2048)
	public String getCContent() {
		return this.CContent;
	}

	public void setCContent(String CContent) {
		this.CContent = CContent;
	}

	@Column(name = "c_createtime", length = 0)
	public Date getCCreatetime() {
		return this.CCreatetime;
	}

	public void setCCreatetime(Date CCreatetime) {
		this.CCreatetime = CCreatetime;
	}

	@Column(name = "c_reply", length = 2048)
	public String getCReply() {
		return this.CReply;
	}

	public void setCReply(String CReply) {
		this.CReply = CReply;
	}

	@Column(name = "c_replyer")
	public Integer getCReplyer() {
		return this.CReplyer;
	}

	public void setCReplyer(Integer CReplyer) {
		this.CReplyer = CReplyer;
	}

	@Column(name = "c_replytime", length = 0)
	public Date getCReplytime() {
		return this.CReplytime;
	}

	public void setCReplytime(Date CReplytime) {
		this.CReplytime = CReplytime;
	}

}